grid layout: Fix initial property values
authorMatthias Clasen <mclasen@redhat.com>
Fri, 28 Jun 2019 12:40:25 +0000 (12:40 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 28 Jun 2019 12:42:06 +0000 (12:42 +0000)
Too bad that we don't cover layout children
in the default value test - it would have
caught this.

gtk/gtkgridlayout.c

index 8d54367a7d551f21f7bf0f3fe13d4aa33e98f73f..aac06e17092fb7bf856b8b47533a54ae90855315 100644 (file)
@@ -212,6 +212,8 @@ gtk_grid_layout_child_class_init (GtkGridLayoutChildClass *klass)
 static void
 gtk_grid_layout_child_init (GtkGridLayoutChild *self)
 {
+  CHILD_ROW_SPAN (self) = 1;
+  CHILD_COL_SPAN (self) = 1;
 }
 
 /**